package com.klw.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.klw.common.annotation.Excel;
import com.klw.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 学期对象 klw_semester
 *
 * @author klw
 * @date 2025-08-24
 */
public class KlwSemester extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 学期ID
     */
    private Long semesterId;

    /**
     * 学期名称
     */
    @Excel(name = "学期名称")
    private String semesterName;

    /**
     * 开始时间
     */
    @Excel(name = "开始时间")
    private Date startTime;

    /**
     * 结束时间
     */
    @Excel(name = "结束时间")
    private Date endTime;

    public void setSemesterId(Long semesterId) {
        this.semesterId = semesterId;
    }

    public Long getSemesterId() {
        return semesterId;
    }

    public void setSemesterName(String semesterName) {
        this.semesterName = semesterName;
    }

    public String getSemesterName() {
        return semesterName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("semesterId", getSemesterId())
                .append("semesterName", getSemesterName())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .toString();
    }
}
